// pages/index/login/index.js
import {Login,request} from'../../request'
Page({
    /**
     * 页面的初始数据
     */
    data: {
        disabled: true,
        btnstate: "default",
        account: "",
        password: ""
    },
    login:function(e){
      Login(this.data.account,this.data.password,"","");
    },
    accountInput: function (e) {
        var content = e.detail.value;
        console.log(content);
        if (content != "") {
          this.setData({ disabled: false, btnstate: "primary", account: content });
        }
      },
      pwdBlur: function (e) {
        var password = e.detail.value;
        if (password != "") {
          this.setData({ password: password });
        }
      }
})